import java.io.File;

public class Driver
{
	public static void main(String[] args)
	{
		ProblemIterator foo = new ProblemIterator("sourcepool");

		while (foo.hasNext())
		{
			ApeProblem ap = foo.next();
			System.out.println();
			System.out.println("Title:  " + ap.title);
			System.out.println("Date:   " + ap.getDateCreated());
			//System.out.println("Points: " + ap.getPoints());

			if (ap.getInputFileName() == null)
				System.out.println("Input:  NONE");
			else
				System.out.println("Input:  " + ap.getInputFileName());

			SourceIterator bar = ap.getSource();

			System.out.println("File List:");
			System.out.println("----------");

			while (bar.hasNext())
			{
				File f = bar.next();
				System.out.println(f.getName());
			}
		}

	}
}
